//
//  Request.swift
//  cmd
//
//  Created by 郭颢源 on 2021/4/1.
//

import Foundation

enum RequestMethod {
    case post
    case get
}
struct Requset {
    init(method: RequestMethod = .post, baseURL: String = "", path: String, parameters: [String : Any]?){
        self.method = method
        self.baseURL = baseURL
        self.path = path
        self.parameters = parameters ?? [:]
    }
    var method: RequestMethod
    var baseURL: String
    var path: String
    var parameters: [String: Any]
}
